mkelf32: fix compilation on 32 bit build host
authorWei Liu <wei.liu2@citrix.com>
Fri, 29 Apr 2016 17:25:31 +0000 (18:25 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 29 Apr 2016 17:43:30 +0000 (13:43 -0400)
commitc2994f8632d56e5379e612daa216401477dccbdb
treef500560a7b6fecda1d4d9b70260224ae362562a2
parent4ad4e2fd490efc41320e966dce16149ff46fd2dd
mkelf32: fix compilation on 32 bit build host

When cross-compiling xen on a 32 bit build host:

boot/mkelf32.c: In function 'main':
boot/mkelf32.c:360:21: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'Elf64_Off' [-Werror=format]
cc1: all warnings being treated as errors

Fix that by using PRId64 in format string.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/boot/mkelf32.c